<template>
  <div id="app">
      <router-view/>      
      <van-tabs v-model="activeName" active="a">
        <van-tab title="推荐音乐" name="/recommend">
          <RecommendView/>
        </van-tab>
        <van-tab title="热歌榜" name="/rank">
          <RankView/>
        </van-tab>
        <van-tab title="搜索" name="/search">
          <SearchView/>
        </van-tab>
      </van-tabs>
    <!-- </nav> -->
    
  </div>
</template>
<script>
import RecommendView from '@/views/RecommendView.vue'
import RankView from '@/views/RankView.vue'
import SearchView from '@/views/SearchView.vue'

export default {
  name: 'App',
  components:{
    RecommendView,
    RankView,
    SearchView
  }
}
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}
#head{
  background: #e42626;
  height: 5rem;
  width: 100%;
}
#head-name{
  font-family: 宋体;
  font-size: 1.5rem;
  color: rgb(255, 255, 255);
  float: left;
  margin: 1.5rem 0 0.5rem 1rem;
  font-weight: bold;
}
#head-button{
  float: right;
  margin: 1.2rem 1rem 1rem 0;
  border-radius: 5rem;
  width: 7rem;
  height: 2.6rem;
  background: #ffffff;
  border: none;
  color: rgb(200, 29, 29);
}
#logo{
  float: left;
  margin: 1.5rem 0 1rem 1rem;
  border-radius: 2rem;
  width: 2rem;
  height: 2rem;
}
</style>
